//
//  TTTTT333Controller.m
//  ProjectDemo
//
//  Created by IOS3 on 2018/12/19.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import "TTTTT333Controller.h"
#import "YJCWaveView.h"
#import "TestWare.h"


@interface TTTTT333Controller ()
@property (nonatomic, strong) CADisplayLink *waveDisplaylink;
@end

@implementation TTTTT333Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = UIColor.whiteColor;
    
    
    
    
    YJCWaveView *v1 = YJCWaveView.new;
    v1.backgroundColor = UIColor.grayColor;
    v1.frame = CGRectMake(0, 100, SCREEN_WIDTH, 100);
    v1.firstWaveColor = [UIColor.redColor colorWithAlphaComponent:0.3];
    v1.secondWaveColor = [UIColor.redColor colorWithAlphaComponent:0.2];
    [self.view addSubview:v1];
    [v1 startWave];
    
    
    
    YJCWaveView *v2 = YJCWaveView.new;
    v2.backgroundColor = UIColor.grayColor;
    v2.frame = CGRectMake(0, 250, SCREEN_WIDTH, 100);
    v2.firstWaveColor = [UIColor.blueColor colorWithAlphaComponent:0.3];
    v2.secondWaveColor = [UIColor.blueColor colorWithAlphaComponent:0.2];
    [self.view addSubview:v2];
    [v2 startWave];

//
//
//
    YJCWaveView *v3 = YJCWaveView.new;
    v3.backgroundColor = UIColor.grayColor;
    v3.frame = CGRectMake(0, 400, SCREEN_WIDTH, 100);
    v3.firstWaveColor = [UIColor.greenColor colorWithAlphaComponent:0.3];
    v3.secondWaveColor = [UIColor.greenColor colorWithAlphaComponent:0.2];
    [self.view addSubview:v3];
    [v3 startWave];
    
    
    
    
        TestWare *v4 = TestWare.new;
        v4.backgroundColor = UIColor.grayColor;
        v4.frame = CGRectMake(0, 550, SCREEN_WIDTH, 100);
        v4.firstWaveColor = [UIColor.purpleColor colorWithAlphaComponent:0.3];
        v4.secondWaveColor = [UIColor.purpleColor colorWithAlphaComponent:0.2];
        [self.view addSubview:v4];
        [v4 startWave];
    
    
    
    
    
    
//    self.waveDisplaylink = [CADisplayLink displayLinkWithTarget:self selector:@selector(drawPath)];
//    [self.waveDisplaylink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
//    

}

- (void)drawPath {
    
}


@end
